<template>
	<view class="content" v-if="data.img" :style="{'left': left+'px'}" @click="jumpPage">
		<image :src="data.img"></image>
		<view class="text">继续观看</view>
	</view>
</template>

<script>
	export default {
		props: {
			data: {
				type: Object,
				default: () => {}
			},
			left: {
				type: Number,
				default: 0
			}
		},
		data() {
			return {
				
			}
		},
		created() {
			this.$nextTick(() => {
				console.log('alsdjflkasjdfl;kasjfl;kasfjl;askdfj;laskdfjal;skdfj;lasdfj;l');
			})
		},
		methods: {
			jumpPage() {
					uni.navigateTo({
						url: '/pages/client/tuan/detail?vid=' + this.data.vid
					})
			}
		}
	}
</script>

<style lang="scss" scoped>
	view {
		font-size: initial;
	}
	.content {
		position: fixed;
		transition: left 1s;
		z-index: 10;
		bottom: 10%;
		border: 8rpx solid #ffe0af;
		border-radius: 8rpx;
		image {
			border: 1px solid;
			width: 176rpx;
			height: 276rpx;
		}
		.text {
			background: rgba(0, 0, 0, 0.7);
			text-align: center;
			height: 44rpx;
			line-height: 44rpx;
			position: absolute;
			bottom: 0;
			width: 100%;
			font-size: 20rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			color: #FFFFFF;
		}
	}
</style>